package yang.yu.sunny.infra.persistence;

import java.util.List;

/**
 * Created by yyang on 16/4/13.
 */
public interface AbstractMapper<T> {

    void create(T entity);

    void update(T entity);

    void remove(Long id);

    T get(Long id);

    List<T> list(List<Long> ids);

    List<T> listAll();
}
